import request from "../utils/request"
// 产品分类下的左导航栏列表
export const categoryList=()=>{
  return request({
    method:'get',
    url:'/api/pro/categorylist',
  })
}

// 点击category区域时  点击谁就要拿到谁的后端数据  所以肯定是有参数传递的
export const categorybrandlist=(type)=>{
  return request({
    method:'get',
    url:`/api/pro/categorybrandlist?category=${type}`
  })
}

// 点击phoneList区域时  点击谁就要拿到谁的后端数据  所以数据肯定是传参的
export const categorybrandprolist =({limitNum,category,brand})=>{
  return request({
    methods:'get',
    url:`/api/pro/categorybrandprolist?count=1&limitNum=${limitNum}&category=${category}&brand=${brand}`
  })
}
//轮播图区域
export const detaillunbo =id=>{
  return request({
    methods:'get',
    url:`api/pro/detail/`+id
  })
} 
